QT       += core gui network script printsupport serialbus multimedia serialport xml


TARGET = PowerMaster

 DEFINES += SERIAL

 #DEFINES += TEST

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# QMAKE_CXXFLAGS += -source-charset UTF-8

# QMAKE_CXXFLAGS += -execution-charset UTF-8

CONFIG(release, debug|release):  DESTDIR =  $$PWD/../../bin_Release/

else: CONFIG(debug, debug|release):  DESTDIR =  $$PWD/../../bin_Debug/

include($$PWD/lib_src/libs.pri)

include($$PWD/Viewer/Viewer.pri)

#include($$PWD/comm/comm.pri )

#include($$PWD/widget/widget.pri)

#include ($$PWD/../gpioTool/gpioTool.pri)

#include ($$PWD/../SerialTool/SerialTool.pri)

INCLUDEPATH += $$PWD/lib_src/net

INCLUDEPATH += $$PWD/lib_src/base

INCLUDEPATH += $$PWD/lib_src/qextserialport

#INCLUDEPATH += $$PWD/../CPS_Nodes

INCLUDEPATH += $$PWD/Viewer/widget

INCLUDEPATH += $$PWD/Viewer

LIBS += -lshell32


#DEFINES +=  NODE_EDITOR_STATIC
#DEFINES += LOG4QT_STATIC _QT_NODES LOG4QT_LIBRARY

CONFIG(release, debug|release)
{
#  QMAKE_LFLAGS += /MINIFESTUAC:\"level=\'requireAdministrator\' uiAccess=\'false\'\"
#   QMAKE_LFLAGS += /MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\"
}


# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target




